package com.coderman.infosys.auth.adapter.convert;

import com.coderman.infosys.auth.adapter.vo.role.RoleVO;
import com.coderman.infosys.auth.adapter.vo.role.request.CreateRoleRequestVO;
import com.coderman.infosys.auth.adapter.vo.role.request.UpdateRoleRequestVO;
import com.coderman.infosys.auth.domain.bo.role.RoleBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* @Description:RoleConvertervobo接口
* @Author:
* @CreateTime:2022-01-04 15:27:39
* @version v1.0
*/
@Mapper
public interface RoleConverter{
	RoleConverter INSTANCE = Mappers.getMapper(RoleConverter.class);

	/**
	 *
	 * @Description:
	 * @return List<RoleBO>
	 */
	 List<RoleBO> volist2boList(List<RoleVO> vOList);
	/**
	 *
	 * @Description:
	 * @return RoleVO
	 */
	 RoleVO bo2VO(RoleBO roleBO);
	/**
	 *
	 * @Description:
	 * @return List<RoleVO>
	 */
	 List<RoleVO> boList2voList(List<RoleBO> roleBOList);
	/**
	 *
	 * @Description:
	 * @return RoleBO
	 */
	 RoleBO vo2bo(CreateRoleRequestVO createRoleRequestVO);
	/**
	 *
	 * @Description:
	 * @return List<RoleBO>
	 */
	 List<RoleBO> voList2BoLists(List<UpdateRoleRequestVO> updateRoleRequestVOList);
	/**
	 *
	 * @Description:
	 * @return RoleBO
	 */
	 RoleBO vo2bo(UpdateRoleRequestVO updateRoleRequestVO);
	/**
	 *
	 * @Description:
	 * @return RoleBO
	 */
	 RoleBO vo2bo(RoleVO roleVO);
	/**
	 *
	 * @Description:
	 * @return List<RoleBO>
	 */
	 List<RoleBO> voList2BoList(List<CreateRoleRequestVO> createRoleRequestVOList);
}